projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa717dd
)
Fix overlapping string copy exposed by tef.
author
robertl
<robertl>
Wed, 22 Jun 2005 20:13:45 +0000
(20:13 +0000)
committer
robertl
<robertl>
Wed, 22 Jun 2005 20:13:45 +0000
(20:13 +0000)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index e22b83d1a2d06e1d93158178418f1b92cc4f9630..d3a958284a667d245463539d30f76a53ef3759ef 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-805,7
+805,7
@@
char * str_utf8_to_cp1252( const char * str )
}
}
*cur = (char)value;
-
strcpy( cur+1, cur+bytes
);
+
memmove(cur+1, cur+bytes, strlen(cur+bytes) + 1
);
}
cur++;
}